package com.fms.gui.templateCreator.components.selector;

import java.io.File;

import javax.swing.filechooser.FileFilter;

class XLSFileFilter extends FileFilter
{
	public XLSFileFilter()
	{

	}

	@Override
	public boolean accept(File file)
	{
		if(file.getAbsolutePath().toLowerCase().endsWith(".xls") || file.isDirectory())
		{
			return true;
		}
		return false;
	}

	@Override
	public String getDescription()
	{
		return "Excel Spreadsheet (.xls)";
	}
}
